<table class="layui-table layui-form">
                                <thead>
                                    <tr>
                                        <th width="70">编号</th>
                                        <th>名称</th>
                                        <th width="120">缩略图</th>
                                        <th style="text-align:right">状态</th>
                                        <th width="250">操作</th>
                                </thead>
                                <tbody class="x-cate">
                                <foreach name="result" item="val">
                                    <tr cate-id='1' fid='0'>
                                        <td>{$key+1}</td>
                                        <td>
                                            {$val['name']}
                                        </td>
                                        <td>
                                            <img src="{$val['cover']}" alt="">
                                        </td>
                                        <td>
                                            <div class="statublock">
                                                <div class="type">
                                                    <div class="type-title">{$val['memo']}</div>
                                                    <div class="type-info">
                                                        <div class="normal">
                                                            <span>价格</span>
                                                            <span>￥{$val['price']/100}元</span>
                                                        </div>
<!--                                                        <div class="big">
                                                            <span>现价</span>
                                                            <span>￥{$val['realprice']/100}</span>
                                                        </div>-->
                                                    </div>
                                                </div>
                                                <div class="statu">{$val['onsale'] == 1 ? '已上架' : '已下架' }</div>
                                            </div>
                                        </td>
                                        <td class="td-manage">
                                            <!--<button class="layui-btn-danger layui-btn layui-btn-xs" onclick="member_del(this, '要删除的id')">下架</button>-->
                                            <a href="/Admin/FoodProduct/addFoodProduct?id={$val['id']}">
                                                <button class="layui-btn layui-btn layui-btn-xs">编辑</button>
                                            </a>
                                            <!--<button class="layui-btn layui-btn-warm layui-btn-xs" onclick="xadmin.open('编辑', 'admin-edit.html')">预览</button>-->
                                        </td>
                                    </tr>
                                </foreach>
                                </tbody>
                            </table>
                            <div class="layui-card-body ">
                                <div class="page">
                                    {$page}
                                </div>
                            </div>